package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.vo.AttrGroupVo;
import com.atguigu.gulimall.product.vo.ProductGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zhangjianyou
 * @email 1844897920@qq.com
 * @date 2022-06-01 12:37:09
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCatId(Map<String, Object> params, Integer catId);

    AttrGroupEntity getByIdAndCatelongPath(Long attrGroupId);

    List<Long> getCatelogPath(Long catelogId,List<Long> catelogPath);

    List<AttrGroupVo> getAttrgroupAndAttrByCatelogId(Long catelogId);

    List<ProductGroup> getProductGroups(Long id, Long spuId);

}

